﻿@model EdexApiClient.InvoiceLines

<div class="modal hide" data-name="INVOICE_LINE">

    <div class="modal-header">
        <h3>Просмотр позиции</h3>
    </div>

    <div class="modal-body">

        <form name="INVOICE_LINE" class="form-horizontal" method="post"> 
            <fieldset> 

                <input type="hidden" name="GUID_RECORD" value="@Model.GUID_RECORD.ToString()" />
                <input type="hidden" name="INVOICE_GUID" value="@Model.INVOICE_GUID" />
                <input type="hidden" name="ITEM_GUID" value="@Model.ITEM_GUID" />

                <div class="control-group"> 
                    <label class="control-label" for="ITEM_NAME">Товар</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="ITEM_NAME" value="@Model.ITEM.ITEM_NAME" readonly="readonly">
                    </div> 
                </div> 
                
                <div class="item-filter-group hide">
                    <div class="control-group"> 
                        <div class="controls">
                            <div class="input-append">
                                <input type="text" class="input-xlarge" name="ITEM-FILTER" value="" placeholder="введите наименование товара" />
                                <button class="btn" type="button" data-action="ITEM-FILTER"><i class="icon-filter"></i></button>
                            </div>
                        </div>
                    </div> 

                    <div class="control-group"> 
                        <div class="controls">
                            <div class="input-append">
                                <select class="input-xlarge" name="ITEM_GUID-FILTER"></select>
                                <button class="btn" type="button" data-action="ITEM-FILTER-APPLY"><i class="icon-ok"></i></button>
                            </div>
                        </div> 
                    </div> 
                </div>

                <div class="control-group"> 
                    <label class="control-label" for="QUANTITY">Количество</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="QUANTITY" value="@Model.QUANTITY">
                    </div> 
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="PRICE">Цена</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="PRICE"  value="@Model.PRICE">
                    </div> 
                </div> 

                <div class="control-group"> 
                    <label class="control-label" for="TOTAL">Сумма</label>
                    <div class="controls">
                        <input type="text" class="input-xlarge" name="TOTAL" value="@Model.TOTAL">
                    </div> 
                </div> 

            </fieldset>
        </form>
        
    </div>

    <div class="modal-footer">
        
        <div style="float: left">
            <a href="#" class="btn" data-action="INVOICE_LINE-DELETE"><i class="icon-remove"></i> Удалить позицию</a>
        </div>

        <a href="#" class="btn btn-primary" data-action='INVOICE_LINE-SAVE'>Сохранить</a>
        <a href="#" class="btn" data-dismiss="modal" data-action='INVOICE_LINE-CLOSE'>Закрыть</a>
    </div>
</div>